
import { axiosPost, axiosGet } from "@/api/ajaxCommon"

// 登录
export function handleLogin(username, password) {
    const data = { userNameOrEmailAddress: username.trim(), password: password }
    return axiosPost("TokenAuth/Authenticate", data, '/api/');
}

// 单点登录<未实现>
export function singleAuthenticate(data) {
    return axiosPost("TokenAuth/SingleAuthenticate", data, '/api/');
}

// 获取用户信息
export function getUserInfo(id) {
    return axiosGet("User/Get", { id: id });
}

